#!/usr/bin/python
# -*- coding: UTF-8 -*-

"""
Description: TestCli

"""
from kptest.api.apibase import ApiBase
from kptest.config.enum import HostType
from extension.api.testns import test_ns


@test_ns.dispatchertype(HostType.BMC)
class TestCli(ApiBase):

    def __init__(self):
        super(TestCli, self).__init__()

    def test_api_method(self):
        self.logger.info("call api success.")
        result = self.dispatch("test_wrapper_method")[0]["parser"]
        return result

    def test_api_method_v2(self):
        self.logger.info("call api_v2 success.")
        result = self.dispatch("test_sub_wrapper_method")[0]["parser"]
        return result
